package com.example.ruiji.controller.arch;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Author:BaiYiChen
 * Date:2022/5/2 14:56
 *
 * @author BaiYiChen
 */
@Controller
@RequestMapping("/arch")
public class ArchController {
  
  @GetMapping("/showArch/{date}")
  public String show(@PathVariable("date")String date, Model model){
    model.addAttribute("date", date);
    return "forward:/articles/showArchived";
  }
}
